Integrand size = 31, antiderivative size = 101 \[ \int \frac {\cos ^4(c+d x)}{(a \cos (c+d x)+i a \sin (c+d x))^2} \, dx=\frac {x}{4 a^2}-\frac {1}{16 a^2 d (i-\cot (c+d x))}-\frac {1}{12 a^2 d (i+\cot (c+d x))^3}-\frac {3 i}{8 a^2 d (i+\cot (c+d x))^2}+\frac {11}{16 a^2 d (i+\cot (c+d x))} \]
[Out]
Time = 0.11 (sec) , antiderivative size = 101, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.129, Rules used = {3167, 862, 90, 209} \[ \int \frac {\cos ^4(c+d x)}{(a \cos (c+d x)+i a \sin (c+d x))^2} \, dx=-\frac {1}{16 a^2 d (-\cot (c+d x)+i)}+\frac {11}{16 a^2 d (\cot (c+d x)+i)}-\frac {3 i}{8 a^2 d (\cot (c+d x)+i)^2}-\frac {1}{12 a^2 d (\cot (c+d x)+i)^3}+\frac {x}{4 a^2} \]
[In]
[Out]
Rule 90
Rule 209
Rule 862
Rule 3167
Rubi steps \begin{align*} \text {integral}& = -\frac {\text {Subst}\left (\int \frac {x^4}{(i a+a x)^2 \left (1+x^2\right )^2} \, dx,x,\cot (c+d x)\right )}{d} \\ & = -\frac {\text {Subst}\left (\int \frac {x^4}{\left (-\frac {i}{a}+\frac {x}{a}\right )^2 (i a+a x)^4} \, dx,x,\cot (c+d x)\right )}{d} \\ & = -\frac {\text {Subst}\left (\int \left (\frac {1}{16 a^2 (-i+x)^2}-\frac {1}{4 a^2 (i+x)^4}-\frac {3 i}{4 a^2 (i+x)^3}+\frac {11}{16 a^2 (i+x)^2}+\frac {1}{4 a^2 \left (1+x^2\right )}\right ) \, dx,x,\cot (c+d x)\right )}{d} \\ & = -\frac {1}{16 a^2 d (i-\cot (c+d x))}-\frac {1}{12 a^2 d (i+\cot (c+d x))^3}-\frac {3 i}{8 a^2 d (i+\cot (c+d x))^2}+\frac {11}{16 a^2 d (i+\cot (c+d x))}-\frac {\text {Subst}\left (\int \frac {1}{1+x^2} \, dx,x,\cot (c+d x)\right )}{4 a^2 d} \\ & = \frac {x}{4 a^2}-\frac {1}{16 a^2 d (i-\cot (c+d x))}-\frac {1}{12 a^2 d (i+\cot (c+d x))^3}-\frac {3 i}{8 a^2 d (i+\cot (c+d x))^2}+\frac {11}{16 a^2 d (i+\cot (c+d x))} \\ \end{align*}
Time = 0.77 (sec) , antiderivative size = 82, normalized size of antiderivative = 0.81 \[ \int \frac {\cos ^4(c+d x)}{(a \cos (c+d x)+i a \sin (c+d x))^2} \, dx=\frac {24 c+24 d x+15 i \cos (2 (c+d x))+6 i \cos (4 (c+d x))+i \cos (6 (c+d x))+21 \sin (2 (c+d x))+6 \sin (4 (c+d x))+\sin (6 (c+d x))}{96 a^2 d} \]
[In]
[Out]
Time = 0.82 (sec) , antiderivative size = 79, normalized size of antiderivative = 0.78
method | result | size |
risch | \(\frac {x}{4 a^{2}}+\frac {i {\mathrm e}^{-4 i \left (d x +c \right )}}{16 a^{2} d}+\frac {i {\mathrm e}^{-6 i \left (d x +c \right )}}{96 a^{2} d}+\frac {5 i \cos \left (2 d x +2 c \right )}{32 a^{2} d}+\frac {7 \sin \left (2 d x +2 c \right )}{32 a^{2} d}\) | \(79\) |
derivativedivides | \(\frac {-\frac {i \ln \left (\tan \left (d x +c \right )-i\right )}{8}-\frac {i}{8 \left (\tan \left (d x +c \right )-i\right )^{2}}-\frac {1}{12 \left (\tan \left (d x +c \right )-i\right )^{3}}+\frac {3}{16 \left (\tan \left (d x +c \right )-i\right )}+\frac {i \ln \left (\tan \left (d x +c \right )+i\right )}{8}+\frac {1}{16 \tan \left (d x +c \right )+16 i}}{d \,a^{2}}\) | \(88\) |
default | \(\frac {-\frac {i \ln \left (\tan \left (d x +c \right )-i\right )}{8}-\frac {i}{8 \left (\tan \left (d x +c \right )-i\right )^{2}}-\frac {1}{12 \left (\tan \left (d x +c \right )-i\right )^{3}}+\frac {3}{16 \left (\tan \left (d x +c \right )-i\right )}+\frac {i \ln \left (\tan \left (d x +c \right )+i\right )}{8}+\frac {1}{16 \tan \left (d x +c \right )+16 i}}{d \,a^{2}}\) | \(88\) |
[In]
[Out]
none
Time = 0.25 (sec) , antiderivative size = 65, normalized size of antiderivative = 0.64 \[ \int \frac {\cos ^4(c+d x)}{(a \cos (c+d x)+i a \sin (c+d x))^2} \, dx=\frac {{\left (24 \, d x e^{\left (6 i \, d x + 6 i \, c\right )} - 3 i \, e^{\left (8 i \, d x + 8 i \, c\right )} + 18 i \, e^{\left (4 i \, d x + 4 i \, c\right )} + 6 i \, e^{\left (2 i \, d x + 2 i \, c\right )} + i\right )} e^{\left (-6 i \, d x - 6 i \, c\right )}}{96 \, a^{2} d} \]
[In]
[Out]
Time = 0.20 (sec) , antiderivative size = 189, normalized size of antiderivative = 1.87 \[ \int \frac {\cos ^4(c+d x)}{(a \cos (c+d x)+i a \sin (c+d x))^2} \, dx=\begin {cases} \frac {\left (- 24576 i a^{6} d^{3} e^{14 i c} e^{2 i d x} + 147456 i a^{6} d^{3} e^{10 i c} e^{- 2 i d x} + 49152 i a^{6} d^{3} e^{8 i c} e^{- 4 i d x} + 8192 i a^{6} d^{3} e^{6 i c} e^{- 6 i d x}\right ) e^{- 12 i c}}{786432 a^{8} d^{4}} & \text {for}\: a^{8} d^{4} e^{12 i c} \neq 0 \\x \left (\frac {\left (e^{8 i c} + 4 e^{6 i c} + 6 e^{4 i c} + 4 e^{2 i c} + 1\right ) e^{- 6 i c}}{16 a^{2}} - \frac {1}{4 a^{2}}\right ) & \text {otherwise} \end {cases} + \frac {x}{4 a^{2}} \]
[In]
[Out]
Exception generated. \[ \int \frac {\cos ^4(c+d x)}{(a \cos (c+d x)+i a \sin (c+d x))^2} \, dx=\text {Exception raised: RuntimeError} \]
[In]
[Out]
none
Time = 0.31 (sec) , antiderivative size = 103, normalized size of antiderivative = 1.02 \[ \int \frac {\cos ^4(c+d x)}{(a \cos (c+d x)+i a \sin (c+d x))^2} \, dx=-\frac {-\frac {6 i \, \log \left (\tan \left (d x + c\right ) + i\right )}{a^{2}} + \frac {6 i \, \log \left (\tan \left (d x + c\right ) - i\right )}{a^{2}} + \frac {3 \, {\left (2 i \, \tan \left (d x + c\right ) - 3\right )}}{a^{2} {\left (\tan \left (d x + c\right ) + i\right )}} + \frac {-11 i \, \tan \left (d x + c\right )^{3} - 42 \, \tan \left (d x + c\right )^{2} + 57 i \, \tan \left (d x + c\right ) + 30}{a^{2} {\left (\tan \left (d x + c\right ) - i\right )}^{3}}}{48 \, d} \]
[In]
[Out]
Time = 27.41 (sec) , antiderivative size = 138, normalized size of antiderivative = 1.37 \[ \int \frac {\cos ^4(c+d x)}{(a \cos (c+d x)+i a \sin (c+d x))^2} \, dx=\frac {x}{4\,a^2}-\frac {-\frac {3\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^7}{2}+{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^6\,2{}\mathrm {i}+\frac {7\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5}{6}+\frac {{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4\,4{}\mathrm {i}}{3}-\frac {7\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3}{6}+{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2\,2{}\mathrm {i}+\frac {3\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{2}}{a^2\,d\,{\left (\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )+1{}\mathrm {i}\right )}^2\,{\left (1+\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\,1{}\mathrm {i}\right )}^6} \]
[In]
[Out]